package org.gjw.bean;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (SysUser)表实体类
 *
 * @author makejava
 * @since 2021-06-26 11:53:44
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SysUser extends Model<SysUser> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private int deleted;

    private Date createTime;

    @TableField(exist = false)
    private List<SysRole> roles;

    @TableField(exist = false)
    private List<SysPermission> permissions;
}
